<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title> 
    <script src="../js/jquery-3.2.1.js"></script>   
    <style>
        .setTime{
            text-align: center;            
            height: 100%;
            width: 100%;
            position: relative;
            font-size: 18PX;
            opacity: 0.8;
            margin-top: 50px;
            
        }
        
       .wkuang{
           position: absolute;
           top:0;
           left:0;
           opacity: 0.3;
           width: 100%;
           height: 100%;
           background: rgb(58, 41, 41);
           display: none;
       }
       .kuang{
           margin: 300px auto;
           width: 400px;
           height: 250px;
           background: rgb(238, 227, 227);
           font-size: 10px;
           padding-top: 100PX;
           z-index: 100;
           text-align: center;
           position: absolute;
           top: 0;
           left: 35%;
           display: none;
       }
       .kuang>input{
            width:150px;
            height: 20px;
            margin: 10px 0  10px 10PX ;
            outline: 0
       }
       button{
           margin:10px 180px 10px;
           width: 80px;
           height: 30px;
           font-size: 16px;
           line-height: 5px;
           display: block;
           padding: 1px 0 1px 0;
           color: wheat;
           background: rgb(11, 177, 52);
       }
       .wy,.wy1{
           width: 900px;
           height: 100px;
           /* background:pink; */
           display: none;
           position: absolute;
           top:50px;
       }
       .wy>input{
           position: relative;
           top:-10px;
          
       }
       
       .content{
           width:1200px;
           margin: 0 auto;
           /* background: gray; */
       }
       .d1{
           margin-top: 50px;
           font-size: 30px;
           display: inline-block;
       }
       .d2{
           color: red;
           display: inline-block;
           font-size: 20px;
           margin-left:535px;  
           margin-bottom: 50px;         
       }
       
       .d3 li{
           float: left;
           margin-right: 20px;
           margin-left: 0;
           position: relative;
          
           height: 50px;
           /* background: pink; */
       }
       .d3>ul{
           list-style: none;
       }
       .d4 li{
           float: right;
           margin-right: 20px;
           margin-right: 80px;
       }
       .d4 li:last-child{
           margin-right: 10px
       }
       .d4>ul{
           list-style: none;;
       }
       .d5{
          text-align: right;
          margin-right: 0px;
           color: rgb(33, 65, 59);
            font-size: 20px;
            margin-top: 200px;
       }
       .d5>span{
           margin-right: 100px;
          
          
       }
       .d7{
           display: inline-block;
           width: 100px;
           height: 40px;
           font-size: 20px;
           margin-left: 900px;
           border-radius: 18px;
           position: relative;
           top:-38px;
           left:106px;
       }
       .d6{
        display: inline-block;
           margin-left: 867px;
           margin-top: 50px;
          
       }
       .money{
           font-size: 36px;
       }
       /* .d3>ul>li:hover .wy{
           display: block
       }
       .wy>img:hover{
           border:1px solid black;
       } */
    </style>
</head>
<body>
    <div class="setTime"></div>
    <hr>
    <div class="content">
        <div class="d1">
            <div>项目:腰约·zizi烧烤4-5人餐</div>
        </div>
        <div class="d2">应付金额 <span class="money">¥ 218.00</span></div>
        <div class="d3">
            <ul class="ul">
                <li class="zzz">支付宝/微信
                    <div class="wy">
                        <input type="radio" name="qq" id="ppp"><img src="https://p1.meituan.net/pay/pc_wxqrpay.png" alt=""></label>
                        <label><input type="radio" name="qq"><img src="https://p0.meituan.net/pay/alipaypcnew.png" alt=""></label>
                    </div>
                </li>
                <li class="zzz1">个人网银支付
                    <div class="wy1">
                            <input type="radio" name="qqq" id="ppp1"><label for="ppp1"><img src="https://p1.meituan.net/pay/icbc.png" alt=""></label>
                            <input type="radio" name="qqq" id="ppp2"><label for="ppp2"><img src="https://p1.meituan.net/pay/cmb.png" alt=""></label>
                            <input type="radio" name="qqq" id="ppp3"><label for="ppp3"><img src="https://p1.meituan.net/pay/ccb.png" alt=""></label>
                            <input type="radio" name="qqq" id="ppp4"><label for="ppp4"><img src="https://p1.meituan.net/pay/abc.png" alt=""></label>
                            <input type="radio" name="qqq" id="ppp5"><label for="ppp5"><img src="https://p0.meituan.net/pay/boc.png" alt=""></label><br>
                            <input type="radio" name="qqq" id="ppp6"><label for="ppp6"><img src="https://p1.meituan.net/pay/bofc.png" alt=""></label>
                            <input type="radio" name="qqq" id="ppp7"><label for="ppp7"><img src="https://p0.meituan.net/pay/spdb.png" alt=""></label>
                            <input type="radio" name="qqq" id="ppp8"><label for="ppp8"><img src="https://p1.meituan.net/pay/pspc.png" alt=""></label>
                            <input type="radio" name="qqq" id="ppp9"><label for="ppp9"><img src="http://p0.meituan.net/pay/ee150864df5119f003009fa1ae154f902918.png" alt=""> </label>                    
                            <input type="radio" name="qqq" id="ppp0"><label for="ppp0"><img src="https://p1.meituan.net/pay/other.png" alt=""></label>
                    </div>
                </li>
            </ul>
        </div>
       
        <div class="d4">
            <ul>
                <li>支付帮助</li>
                <li>意见反馈</li>
            </ul>
        </div>
        <div style="clear: both"></div>
        <div class="d5">支付 <span class="money">¥ 218.00</span></div>
        
        <a href="#" class="d6">返回修改订单</a>
        <button class="d7">去付款</button>
        <div class="wkuang">
            
        </div>
        <div class="kuang">
            用户名：<input type="text"><br>
            &nbsp;密  码&nbsp;：<input type="password"><br>
            <button>登录</button>
        </div>
    </div>
    
</body>
<script src="../js/jquery-3.2.1.js"></script>
<script>
    var n=200;
    fun();
    function fun(){
        if(n>0){
            n--;
            //找到div的位置，将字幕放进去
            $(".setTime").html(`请在${n}秒内完成支付，超时订单会自动取消`)
        }else{
            clearInterval(qq);                  
            $(".wkuang,.kuang").css("display","block")
            //alert("已超过支付时间，订单自动取消")
           
        }
    }
    var qq=setInterval(fun,1000)
    //绑定点击事件
    var isshow=false;
    $(".zzz").on("click",function(){
        if(!isshow){
            $(".wy").css("display","block")
            isshow=true;
        }else{
            $(".wy").css("display","none")
            isshow=false;
        }       
    }
    )
    $(".zzz1").on("click",function(){
        $(".wy1").css("display","block")
    }
    )
    
</script>
</html>